package com.mindskip.xzs.domain;

import com.mindskip.xzs.domain.exam.QuestionTestStateEnum;
import com.mindskip.xzs.viewmodel.admin.exam.ExamPaperTitleItemVM;
import com.mindskip.xzs.viewmodel.student.exam.ExamPaperSubmitItemVM;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;


public class QuestionTestData implements Serializable {

    private Integer userId;

    private QuestionTestStateEnum state = QuestionTestStateEnum.INIT;

    /*
     重复的题不可以出现
     */
    private LinkedHashMap<Integer,Question> historyTestList = new LinkedHashMap<>(); // 做过的题

    List<ExamPaperSubmitItemVM> answer = new ArrayList<>(); // 给出的答案,用于留档

    List<ExamPaperTitleItemVM> titleItems = new ArrayList<>(); // 保存生成page的

    public List<ExamPaperTitleItemVM> getTitleItems() {
        return titleItems;
    }

    public void setTitleItems(List<ExamPaperTitleItemVM> titleItems) {
        this.titleItems = titleItems;
    }

    public List<ExamPaperSubmitItemVM> getAnswer() {
        return answer;
    }

    public void setAnswer(List<ExamPaperSubmitItemVM> answer) {
        this.answer = answer;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public QuestionTestStateEnum getState() {
        return state;
    }

    public void setState(QuestionTestStateEnum state) {
        this.state = state;
    }

    public LinkedHashMap<Integer, Question> getHistoryTestList() {
        return historyTestList;
    }

    public void setHistoryTestList(LinkedHashMap<Integer, Question> historyTestList) {
        this.historyTestList = historyTestList;
    }



}
